/**
 * Copyright (c) 2015—2017 Zerone.Co.Ltd. All rights reserved.
 */
package com.zerone.pay.merchant.provider;

import com.acooly.core.common.facade.SingleResult;
import com.acooly.module.adk.executor.ActivityExecutorContainer;
import com.zerone.facade.merchant.api.MerchantQueryFacade;
import com.zerone.facade.merchant.info.MerchantInfo;
import com.zerone.facade.merchant.info.MerchantPayInfo;
import com.zerone.facade.merchant.order.MerchantPayQueryOrder;
import com.zerone.facade.merchant.order.MerchantQueryOrder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author glassescat <a href="">零一零一科技</a>
 */
@Service
public class MerchantQueryProvider implements MerchantQueryFacade {
	
	@Autowired
	private ActivityExecutorContainer container;
	
	@Override
	public SingleResult<MerchantInfo> queryByMerchantId(MerchantQueryOrder order) {
		return container.accept(order, "queryByMerchantId");
	}
	
	@Override
	public SingleResult<MerchantPayInfo> queryMerchantPay(MerchantPayQueryOrder order) {
		return container.accept(order, "queryMerchantPay");
	}
}
